home *** CD-ROM | disk | FTP | other *** search
-
-
- // ---------------------------------------------------------------------
- // HIImageRef
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("ImageRef")
- Margin (5, 5, 5, 5)
- VList
- {
- IntegerPopup ("Image Type", 80, HIImage_imageType_data)
- {
- IntItem ("No Image", 'none');
- IntItem ("Text", 'txto');
- IntItem ("Icon", 'icon');
- IntItem ("Picture", 'pict');
- IntItem ("Composite", 'comp');
- IntItem ("Pattern", 'ppat');
- };
-
- Spacer (Height = 3);
- Switch (HIImage_imageType_data)
- {
- case 'none':
- Spacer (Width = 2);
-
- case 'txto':
- EditText (HIImage_textResourceID_data, Label = "Text Resource ID:");
-
- case 'icon':
- VList ()
- {
- EditText (HIImage_iconSuiteID_data, Label = "Icon Suite Resource ID:");
-
- // Icon Selector
- Spacer (Height = 5);
- IntegerPopup ("Icon Selector", 100, HIImage_iconSelector_data)
- {
- IntItem ("Large 1 Bit", 0x00000001);
- IntItem ("Large 4 Bit", 0x00000002);
- IntItem ("Large 8 Bit", 0x00000004);
- IntItem ("---", -666);
- IntItem ("Small 1 Bit", 0x00000100);
- IntItem ("Small 4 Bit", 0x00000200);
- IntItem ("Small 8 Bit", 0x00000400);
- IntItem ("---", -666);
- IntItem ("Mini 1 Bit", 0x00010000);
- IntItem ("Mini 4 Bit", 0x00020000);
- IntItem ("Mini 8 Bit", 0x00040000);
- IntItem ("---", -666);
- IntItem ("All Large Data", 0x000000FF);
- IntItem ("All Small Data", 0x0000FF00);
- IntItem ("All Mini Data", 0x00FF0000);
- IntItem ("---", -666);
- IntItem ("All 1 Bit Data", 0x00010101);
- IntItem ("All 4 Bit Data", 0x00020202);
- IntItem ("All 8 Bit Data", 0x00040404);
- IntItem ("---", -666);
- IntItem ("All Available Data", 0xFFFFFFFF);
- };
- }
-
- case 'pict':
- EditText (HIImage_pictureResourceID_data, Label = "Picture Resource ID:");
-
- case 'comp':
- StaticText ("Composite titles currently unsupported.");
-
- case 'ppat':
- StaticText ("Pattern titles currently unsupported.");
- }
- }
-
- // ---------------------------------------------------------------------
- // HIObject
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIObject")
- Margin (5, 5, 5, 5)
- VList
- {
- Label ("RefLabel", Single)
- Margin (2, 2, 2, 2)
- VList
- {
- EditText (HIObject_refLabel_creator, Label = "Creator:", LabelAlignment = right, LabelWidth = 60);
- Spacer (Height = 2);
- EditText (HIObject_refLabel_id, Label = "ID:", LabelAlignment = right, LabelWidth = 60);
- }
-
- Label ("Title", Single)
- IncludeNamedStatement ("ImageRef");
-
- Label ("Bounds", Single)
- Margin (2, 2, 2, 2)
- VList
- {
- HList
- {
- EditText (HIObject_bounds_top, Label = "Top: ", LabelAlignment = right, LabelWidth = 40);
- Spacer (Width = 10);
- EditText (HIObject_bounds_left, Label = "Left: ", LabelAlignment = right, LabelWidth = 40);
- }
- Spacer (Height = 2);
- HList
- {
- EditText (HIObject_bounds_bottom, Label = "Bottom: ", LabelAlignment = right, LabelWidth = 40);
- Spacer (Width = 10);
- EditText (HIObject_bounds_right, Label = "Right: ", LabelAlignment = right, LabelWidth = 40);
- }
- }
-
- Spacer (Height = 5);
- CheckBox ("Enabled", HIObject_enabled_data);
-
- Spacer (Height = 5);
- CheckBox ("Visible", HIObject_visible_data);
-
- }
-
- // ---------------------------------------------------------------------
- // HIPanel
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIPanel")
- IncludeNamedStatement ("HIObject");
-
- // -------------------------------------------------------------------------------------------------
- //
- // Controls
- //
- // -------------------------------------------------------------------------------------------------
- DeclareNamedStatement ("HIControl")
- VList
- {
- IncludeNamedStatement ("HIPanel");
-
- Margin (5, 5, 5, 5)
- VList
- {
- // Control Value
- Spacer (Height = 5);
- EditText (HIControl_value_data, Label = "Value:", LabelAlignment = right, LabelWidth = 60);
-
- // Control Mimimum
- Spacer (Height = 5);
- EditText (HIControl_minimum_data, Label = "Minimum:", LabelAlignment = right, LabelWidth = 60);
-
- // Control Maximum
- Spacer (Height = 5);
- EditText (HIControl_maximum_data, Label = "Maximum:", LabelAlignment = right, LabelWidth = 60);
- }
- }
-
- // ---------------------------------------------------------------------
- // HIBevelButton
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIBevelButton")
- VList
- {
- IncludeNamedStatement ("HIPanel");
- Margin (5, 5, 5, 5)
- IntegerPopup ("Behavior", 60, HIBevelButton_behavior_data)
- {
- IntItem ("Momentary", 0);
- IntItem ("Toggle", 1);
- };
- }
-
- // ---------------------------------------------------------------------
- // HICheckbox
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HICheckbox")
- VList ()
- {
- IncludeNamedStatement ("HIPanel");
- Margin (5, 5, 5, 5)
- CheckBox ("CheckBox Selected", HIControl_value_data);
- }
-
- // ---------------------------------------------------------------------
- // HIDisclosureTriangle
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIDisclosureTriangle")
- IncludeNamedStatement ("HIPanel"); // doesn't use all of HIControl's data members
-
- // ---------------------------------------------------------------------
- // HILittleArrows
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HILittleArrows")
- VList
- {
- IncludeNamedStatement ("HIControl");
-
- // Arrow Delta
- Margin (5, 5, 5, 5)
- EditText (HILittleArrows_arrowDelta_data, Label = "Arrow Delta:", LabelAlignment = right, LabelWidth = 60);
- }
-
- // ---------------------------------------------------------------------
- // HIProgressIndicator
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIProgressIndicator")
- VList
- {
- IncludeNamedStatement ("HIPanel"); // doesn't use all of HIControl's data members
-
- Margin (5, 5, 5, 5)
- VList
- {
- // Behavior -- is the indicator determinate?
- // kHIDeterminateBehavior = 0, -- from HIControlTypes.h -- Progress indicator behavior
- // kHIIndeterminateBehavior = 1
- IntegerPopup ("Behavior", 60, HIProgressIndicator_behavior_data)
- {
- IntItem ("Determinate", 0);
- IntItem ("Indeterminate", 1);
- };
- }
- }
-
- // ---------------------------------------------------------------------
- // HIPushButton
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIPushButton")
- VList
- {
- IncludeNamedStatement ("HIPanel");
-
- Margin (5, 5, 5, 5)
- IntegerPopup ("Button Appearance:", 100, HIPushButton_defaultCancelState_data)
- {
- IntItem ("Normal", 0);
- IntItem ("Default", 1);
- IntItem ("Cancel", 2);
- };
- }
-
- // ---------------------------------------------------------------------
- // HIRadioButton
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIRadioButton")
- IncludeNamedStatement ("HIPanel");
-
- // ---------------------------------------------------------------------
- // HISlider
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HISlider")
- IncludeNamedStatement ("HIControl");
-
- // ---------------------------------------------------------------------
- // HIScrollbar
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIScrollbar")
- VList
- {
- IncludeNamedStatement ("HIControl");
-
- Margin (5, 5, 5, 5)
- VList
- {
- // Arrow Delta
- Spacer (Height = 5);
- EditText (HIScrollbar_arrowDelta_data, Label = "Arrow Delta:", LabelAlignment = right, LabelWidth = 60);
-
- // Page Delta
- Spacer (Height = 5);
- EditText (HIScrollbar_pageDelta_data, Label = "Page Delta:", LabelAlignment = right, LabelWidth = 60);
- }
- }
-
- // -------------------------------------------------------------------------------------------------
- //
- // Static Panels
- //
- // -------------------------------------------------------------------------------------------------
-
- // ---------------------------------------------------------------------
- // HICaption
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HICaption")
- IncludeNamedStatement ("HIPanel");
-
- // ---------------------------------------------------------------------
- // HIIcon
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIIcon")
- VList
- {
- IncludeNamedStatement ("HIPanel");
-
- // Icon Transform
- Spacer (Height = 5);
- IntegerPopup ("Icon Transform", 100, HIIcon_transform_data)
- {
- IntItem ("None", 0);
- IntItem ("Disabled", 1);
- IntItem ("Offline", 2);
- IntItem ("Open", 3);
- IntItem ("---", -666);
- IntItem ("Selected", 0x4000);
- IntItem ("Selected Disabled", 0x4001);
- IntItem ("Selected Offline", 0x4002);
- IntItem ("Selected Open", 0x4003);
- IntItem ("---", -666);
- IntItem ("Label 1", 0x100);
- IntItem ("Label 2", 0x200);
- IntItem ("Label 3", 0x300);
- IntItem ("Label 4", 0x400);
- IntItem ("Label 5", 0x500);
- IntItem ("Label 6", 0x600);
- IntItem ("Label 7", 0x700);
- };
-
- }
-
- // ---------------------------------------------------------------------
- // HIPicture
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIPicture")
- IncludeNamedStatement ("HIPanel");
-
- // ---------------------------------------------------------------------
- // HIVisualSeparator
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIVisualSeparator")
- VList
- {
- IncludeNamedStatement ("HIPanel");
-
- Margin (5, 5, 5, 5)
- IntegerPopup ("Visual Separator Type:", 110, HIVisualSeparator_separatorType_data)
- {
- IntItem ("Primary Group", 0);
- IntItem ("Secondary Group", 1);
- IntItem ("Horizontal", 2);
- IntItem ("Vertical", 3);
- };
- }
-
- // -------------------------------------------------------------------------------------------------
- //
- // Embedding Panels
- //
- // -------------------------------------------------------------------------------------------------
-
-
-
- // ---------------------------------------------------------------------
- // HIEmbeddingPanel
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIEmbeddingPanel")
- VList
- {
- IncludeNamedStatement ("HIPanel");
-
- Margin (5, 5, 5, 5)
- DynamicListMargin ("SubPanels",
- HIEmbeddingPanel_subPanels,
- Width = UseParent)
- DynamicVList (HIEmbeddingPanel_subPanels,
- HIEmbeddingPanel_subPanel_type,
- Width = UseParent,
- Editable)
- Margin (2, 2, 2, 2, Dotted, Outer, Width = UseParent)
- Margin(2,2,2,2)
- HList ()
- {
- StaticText(" Item #");
- StaticText(ContextElementIndex);
- EditText (HIEmbeddingPanel_subPanelResID,
- Label = "Resource ID: ");
- }
-
- }
-
- // ---------------------------------------------------------------------
- // HIRootPanel
- // ---------------------------------------------------------------------
- DeclareNamedStatement ("HIRootPanel")
- IncludeNamedStatement ("HIEmbeddingPanel");
-
- // -------------------------------------------------------------------------------------------------
- //
- // Windows
- //
- // -------------------------------------------------------------------------------------------------
- DeclareNamedStatement ("HIWindow")
- VList
- {
- IncludeNamedStatement ("HIObject");
-
- Margin (5, 5, 5, 5)
- VList
- {
- IntegerPopup ("Window Class", 100, HIWindow_windowClass_data)
- {
- IntItem ("Normal", 2);
- IntItem ("Floating", 1);
- IntItem ("Modal", 0);
- };
-
- Spacer (Height = 5);
- Switch (HIWindow_windowClass_data)
- {
- case 2:
- IntegerPopup ("Window Variant", 100, HIWindow_windowVariant_data)
- {
- IntItem ("Document", 0);
- IntItem ("Plain Dialog", 2);
- IntItem ("Shadow Dialog", 3);
- IntItem ("Borderless Normal", 10);
- };
- case 1:
- IntegerPopup ("Window Variant", 100, HIWindow_windowVariant_data)
- {
- IntItem ("Standard Floater", 0);
- IntItem ("Borderless Floater", 1);
- IntItem ("Side Floater", 8);
- };
- case 0:
- IntegerPopup ("Window Variant", 100, HIWindow_windowVariant_data)
- {
- IntItem ("Modal Dialog", 1);
- IntItem ("Movable Modal Dialog", 5);
- IntItem ("Alert", 7);
- IntItem ("Movable Alert", 9);
- };
- }
-
- Label ("Window Options", Single)
- HList ()
- {
- VList ()
- {
- CheckBox ("Has Grow Box", HIWindow_hasGrowBox_data, Width = 170);
- CheckBox ("Horizontal Zoom Box", HIWindow_hasHorizontalZoom_data, Width = 170);
- CheckBox ("Vertical Zoom Box", HIWindow_hasVerticalZoom_data, Width = 170);
- CheckBox ("Has Close Box", HIWindow_hasCloseBox_data, Width = 170);
- CheckBox ("No Update Events", HIWindow_noUpdateEvents_data, Width = 170);
- CheckBox ("No ActivateEvents", HIWindow_noActivateEvents_data, Width = 170);
- CheckBox ("Wants Background Clicks", HIWindow_wantsBackgroundClicks_data, Width = 190);
- }
- VList ()
- {
- CheckBox ("Right To Left", HIWindow_isRightToLeft_data, Width = 170);
- CheckBox ("No Process Switch", HIWindow_noProcessSwitch_data, Width = 170);
- CheckBox ("Does Title Icon Drag", HIWindow_doesTitleIconDrag_data, Width = 170);
- CheckBox ("Has Collapse", HIWindow_hasCollapse_data, Width = 170);
- CheckBox ("Do Not Erase Content", HIWindow_doNotEraseContent_data, Width = 170);
- CheckBox ("Automatic Alignment", HIWindow_automaticAlignment_data, Width = 170);
- CheckBox ("Quit on Close", HIWindow_quitOnClose_data, Width = 170);
- }
- }
-
- Spacer (Height = 5);
- EditText (HIWindow_rootPanelResID_data, Label = "Root Panel Resource ID: ");
- }
- }
-
- // -------------------------------------------------------------------------------------------------
- //
- // And now for our feature presentation...
- //
- // -------------------------------------------------------------------------------------------------
-
- DeclareNamedStatement ("Panel")
- Margin (5, 5, 5, 5)
- VList ()
- {
- IntegerPopup ("Panel Type", 100, HIObject_classID)
- {
- IntItem ("HIPushButton", 1);
- IntItem ("HICheckbox", 2);
- IntItem ("HIRadioButton", 3);
- IntItem ("HIBevelButton", 8);
- IntItem ("HIDisclosureTriangle", 9);
- IntItem ("HILittleArrows", 10);
- IntItem ("HIProgressIndicator", 12);
- IntItem ("HIScrollbar", 13);
- IntItem ("HISlider", 7);
- IntItem ("----", 0);
- IntItem ("HICaption", 14);
- IntItem ("HIIcon", 16);
- IntItem ("HIPicture", 15);
- IntItem ("HIVisualSeparator", 5);
- IntItem ("----", 0);
- IntItem ("HIEmbeddingPanel", 6);
- IntItem ("HIRootPanel", 18);
- IntItem ("----", 0);
- IntItem ("HIWindow", 19);
- };
-
- Switch (HIObject_classID)
- {
- case 1:
- IncludeNamedStatement ("HIPushButton");
- case 2:
- IncludeNamedStatement ("HICheckbox");
- case 3:
- IncludeNamedStatement ("HIRadioButton");
- case 5:
- IncludeNamedStatement ("HIVisualSeparator");
- case 6:
- IncludeNamedStatement ("HIEmbeddingPanel");
- case 7:
- IncludeNamedStatement ("HISlider");
- case 8:
- IncludeNamedStatement ("HIBevelButton");
- case 9:
- IncludeNamedStatement ("HIDisclosureTriangle");
- case 10:
- IncludeNamedStatement ("HILittleArrows");
- case 12:
- IncludeNamedStatement ("HIProgressIndicator");
- case 13:
- IncludeNamedStatement ("HIScrollbar");
- case 14:
- IncludeNamedStatement ("HICaption");
- case 15:
- IncludeNamedStatement ("HIPicture");
- case 16:
- IncludeNamedStatement ("HIIcon");
- case 18:
- IncludeNamedStatement ("HIRootPanel");
- case 19:
- IncludeNamedStatement ("HIWindow");
- }
- }
-
- IncludeNamedStatement ("Panel");
-
-